//
//  Layer_HUD.m
//  Return Of The Lemi
//
//  Created by Paul Vishayanuroj on 11/10/09.
//  Copyright 2009 Cornell University. All rights reserved.
//

#import "Layer_HUD.h"
#import "Layer_Creatures.h"
#import "Dock.h"

@implementation Layer_HUD

- (id) init
{
	if ((self = [super init]))
	{
	}
	return self;
}

- (void) AddButtons
{
	Layer_Creatures *creatureLayer = (Layer_Creatures *)[[self.parent getChildByTag:kTagParallaxNode] getChildByTag:kTagCreatures];

	// Add the move left and move right buttons	
	Button *leftButton = [Button ButtonWithImage:@"Icon.png" file2:@"Icon2.png" position:CGPointMake(60, 200) target:creatureLayer sel1:@selector(PlayerWalkLeft:) sel2:@selector(PlayerStand:)];
	Button *rightButton = [Button ButtonWithImage:@"Icon.png" file2:@"Icon2.png" position:CGPointMake(60, 100) target:creatureLayer sel1:@selector(PlayerWalkRight:) sel2:@selector(PlayerStand:)];
	
	[self addChild: leftButton];	
	[self addChild: rightButton];
	
	//Button *spinButton = [Button ButtonWithImage:@"Icon.png" file2:@"Icon2.png" position:CGPointMake(240, 250) target:creatureLayer sel1:@selector(PlayerDoNothing:) sel2:@selector(PlayerSpin:)];	
	//[self addChild: spinButton];

	
/*	
	Dock *dock = [Dock dockWithPosition:CGPointMake(150, 100)];
	
	ButtonItem *b1 = [ButtonItem ButtonItemWithImage:@"Icon.png" file2:@"Icon2.png" target:creatureLayer sel1:@selector(PlayerDoNothing:) sel2:@selector(PlayerDoNothing:)];
	ButtonItem *b2 = [ButtonItem ButtonItemWithImage:@"Icon.png" file2:@"Icon2.png" target:creatureLayer sel1:@selector(PlayerDoNothing:) sel2:@selector(PlayerDoNothing:)];
	ButtonItem *b3 = [ButtonItem ButtonItemWithImage:@"Icon.png" file2:@"Icon2.png" target:creatureLayer sel1:@selector(PlayerDoNothing:) sel2:@selector(PlayerDoNothing:)];	
	ButtonItem *b4 = [ButtonItem ButtonItemWithImage:@"Icon.png" file2:@"Icon2.png" target:creatureLayer sel1:@selector(PlayerDoNothing:) sel2:@selector(PlayerDoNothing:)];
	ButtonItem *b5 = [ButtonItem ButtonItemWithImage:@"Icon.png" file2:@"Icon2.png" target:creatureLayer sel1:@selector(PlayerDoNothing:) sel2:@selector(PlayerDoNothing:)];
	ButtonItem *b6 = [ButtonItem ButtonItemWithImage:@"Icon.png" file2:@"Icon2.png" target:creatureLayer sel1:@selector(PlayerDoNothing:) sel2:@selector(PlayerDoNothing:)];		
	
	[dock addChild:b1 z:1 tag:1];
	[dock addChild:b2 z:1 tag:2];
	[dock addChild:b3 z:1 tag:3];	
	[dock addChild:b4 z:1 tag:4];
	//[dock addChild:b5 z:1 tag:5];
	//[dock addChild:b6 z:1 tag:6];	
	
	[self addChild:dock];
*/	
}
							  

@end
